package com.yiji.fintech.musfinance.base.enums;
import com.google.common.collect.Maps;

import java.util.Map;

public enum RequestEnum {
	VERIFY("VERIFY", "校验"),

    DEDUCT("DEDUCT", "代扣"),

    WITHDRAW("WITHDRAW", "提现"),

    ONLINEBANK("ONLINEBANK", "网银充值"),

    SIGN("SIGN", "签约"),

    UNSIGN("UNSIGN", "解约"),

    QUERYSIGN("QUERYSIGN","签约查询"),

    QUERYBALANCE("QUERYBALANCE", "查询余额"),

    QUERYTRANS("QUERYTRANS", "根据核心流水号查询交易"),

    GATEWAYNOTIFY("GATEWAYNOTIFY", "网关结果回推"),

    DEPOSITBACK("DEPOSITBACK", "充退业务");


    /**
     * 枚举值
     */
    private final String code;

    /**
     * 枚举描述
     */
    private final String message;

    /**
     * 构造一个SignTypeEnum枚举对象
     *
     * @param code
     * @param message
     */
    private RequestEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    /**
     * @return Returns the code.
     */
    public String getCode() {
        return code;
    }

    /**
     * @return Returns the message.
     */
    public String getMessage() {
        return message;
    }

    public static Map<String, String> mapping() {
        Map<String, String> map = Maps.newLinkedHashMap();
        for (RequestEnum type : values()) {
            map.put(type.getCode(), type.getMessage());
        }
        return map;
    }
}

    